package cn.droidlover.xrecyclerview.demo.slice;

import cn.droidlover.xrecyclerview.demo.ResourceTable;
import ohos.agp.components.DependentLayout;
import ohos.agp.components.LayoutScatter;
import ohos.app.Context;
/**
 * 错误的页面
 */
public class ErrorComponent  extends DependentLayout {

    public ErrorComponent(Context context) {
        super(context);
        setupComponent(context);
    }

    private void setupComponent(Context context){

        LayoutScatter.getInstance(context).parse(ResourceTable.Layout_error_component, this, true);
    }
}
